#ifndef MULTIPLEXERS_H
#define MULTIPLEXERS_H

#include <CD74HC4051.h>

using namespace ti;

class Multiplexers
{
public:
    Multiplexers(CD74HC4051& mux0,CD74HC4051& mux1,CD74HC4051& mux2);
    ~Multiplexers();
    
    void open(uint8_t id);
    void close();
    CD74HC4051& mux0();
    CD74HC4051& mux1();
    CD74HC4051& mux2();
private:
    CD74HC4051& _mux0;
    CD74HC4051& _mux1;
    CD74HC4051& _mux2;
};

#endif